home *** CD-ROM | disk | FTP | other *** search
- Dialogs and alert boxes are easy to create with
-
- PCBASIC. One BASIC statement will show the operator
-
- a Modal Dialog or an Alert, wait for the operator to make
-
- a selection or edit text, and return when the operator
-
- pushes a button. It is as simple as this:
-
-
-
- REM Display alert box 500 as a Stop Alert.
-
- REM The number of the button the operator
-
- REM pressed will be in CHOICE%.
-
- 100 CHOICE%=ERROR(501,STOP)
-
-
-
- REM Display dialog 500. Wait for a reply.
-
- REM The button number will be in CHOICE%.
-
- CHOICE%=DIALOG#500
-
-
-
- REM Remove the box. The blank spot on the window
-
- REM will be drawn again, automatically
-
- CLOSE#500
-
- END
-
-